# Supported devices
DEV_TYPE_NAME_ANDROID = 'android'
DEV_TYPE_NAME_CHROME = 'chrome_ext'
DEV_TYPE_NAME_BB = 'bb'

# Data types

DATA_TYPE_IMAGE = 'img'
DATA_TYPE_URL = 'url'
DATA_TYPE_PHONE_NO = 'phone_no'
DATA_TYPE_PLAIN_TXT = 'txt'

# Custom response headers definition
RESP_HEADER_MORE_DATA_AVAIL = 'More-Data-Avail'
RESP_HEADER_DATA_TYPE = 'Data-type'
RESP_HEADER_KEY_NAME = 'Key-name'
RESP_HEADER_ERROR_MSG = 'Error-message'

# Dynamic Expando field
MODEL_FIELD_DATA_CONTENT = 'data_content'

DATA_PROP_KEY_LIST = ['_data_type', '_data_sender', '_data_content']

# For regular expression pattern compilation
import re
RE_PHONE_NO_PATTERN = re.compile(r'^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$')
